package com.oracle.service.employee;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.oracle.dao.EmployeeDao;
import com.oracle.entity.po.EmployeePO;
import com.oracle.entity.po.SalePO;
import com.oracle.entity.vo.PerformanceDetailVO;
import com.oracle.entity.vo.PerformanceVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeDao, EmployeePO> implements EmployeeService {

    @Override
    public List<PerformanceVO> getPerformance() {
        return this.baseMapper.getPerformance();
    }

    @Override
    public List<PerformanceDetailVO> getPerformanceDetail(int id) {
        return this.baseMapper.getPerformanceDetail(id);
    }

    @Override
    public void insertSale(SalePO salePO) {
        this.baseMapper.insertSale(salePO);
    }
}